﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<QianBuo.Lottery.Web.Areas.Manage.Models.Issue.SearchIssue>" %>

<%@ Import Namespace="Code.Models" %>
<div align="center">
 <% Html.BeginForm(); %>
    <table class="table" width="100%">
         <tr>
            <th>期号</th><th>彩种</th><th>开始时间</th><th>结束时间</th><th>开奖号码</th><th>状态</th>
         </tr>
         <% foreach (var issue in Model.IssueList)
	        {
		    %>
                <tr>
                    <td><%=issue.FormatIssueName %></td>
                    <td><%=issue.LotteryName %></td>
                    <td><%=issue.StartTime %></td>
                    <td><%=issue.EndTime %></td>
                    <td><%=issue.OpenCode %></td>
                    <td><%=((IssueState)issue.State).GetName() %></td>
                    <td><input type="checkbox" name="cbkIssueID" value='<%=issue.ID %>' /></td>
                </tr>    
            <%
	        }if(Model.IssueList!=null&&Model.IssueList.Count>0){ %>
                <tr><td align='7'><%=Html.Pager(Model.PageInfo.CurrPage, Model.PageInfo.PageCount, Model.PageInfo.SunCount, "PageInfo.CurrPage", Url.Route(new { Model.Search, retunUrl = Request["returnUrl"] }))%></td></tr>
            <%} %>
    </table>
 <% Html.EndForm(); %>
</div>
